<?php
    class FileManager {
        private $FileDataAdapter;
        
        function __construct($selectedDir) {
        $this->FileDataAdapter = new FileDataAdapter($selectedDir);     
        }   
         
        function SelectItem($file) {
           return $this->FileDataAdapter->Select($file);
        }
        
        function UpdateItem($fileObject) {
            $this->FileDataAdapter->Update($fileObject);
        }
        
        function InsertItem($fileObject,$source_filename) {
            $this->FileDataAdapter->Insert($fileObject,$source_filename);
        }
        
        function DeleteItem($item) {
            $this->FileDataAdapter->Delete($item);
        }
        
        function __destruct() {
        }
    }
?>
